<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let p = new Promise((resolve,reject)=>{
            reject('ok');
            // resolve('error');
        })
        let result = p.then(value=>{
            console.log('value',value);
            throw '我错了';
        },reason=>{
            console.log('reason',reason);
            return new Promise((resolve,reject)=>{
                resolve('ok1111');
            })
        })
        console.log('result',result);
        // console 打印什么？
        // p       是什么？
        // result  是什么？

        // then 方法，成功或失败的回调都是异步的回调
    </script>
</body>
</html>